i = 1
while i <= 9:
    # 处理列数
    j = 1
    while j <= i:
        print(j,'*',i,'=',j*i,end='  ')
        # 令列数加1
        j += 1
    print('\n')
    # 令行数加1
    i += 1